<?php

/**
 * This is the Widget for create new Resource.
 *
 * @author Tuong Tran <tuong.tran@outlook.com>
 *
 */
//import model
class ResourceButtonWidget extends CWidget {

    public $visible = true;

    public function init() {

    }

    public function run() {
        if ($this->visible) {
            $this->renderContent();
        }
    }

    protected function renderContent() {
        //set css and js
        regCssFile('fancybox/jquery.fancybox', 'js');
        regJsFile('fancybox/jquery.fancybox.pack');

        $this->render('button');
    }

}
